package com.wxzhou.wangzhuan.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 广告预请求响应对象
 */
public class AdPreReportResponse {

    /**
     * {
     * "data": {
     * "ad_id_sn": "acfaa5e1dd872f65a4aafe1cf1027e09",
     * "adid": "a2",
     * "next_interval_time": 30000,
     * "is_allow": true
     * },
     * "msg": "成功",
     * "code": 200
     * }
     */

    //行为分组ID
    private String ad_id_sn;

    //本次广告位ID
    private String adid;
    private String wechaturl;

    //是否允许拉取此广告
    @JsonProperty(value = "is_allow")
    private boolean allow;

    //拉取此广告后间隔多少秒之后才允许拉取下一个广告位（拉取间隔时间），单位：毫秒。0表示不限制。
    private long nextIntervalTime = 0;

    public AdPreReportResponse() {
    }

    public AdPreReportResponse(String ad_id_sn, String adid, boolean allow) {
        this.ad_id_sn = ad_id_sn;
        this.adid = adid;
        this.allow = allow;
    }


    public String getAd_id_sn() {
        return ad_id_sn;
    }

    public void setAd_id_sn(String ad_id_sn) {
        this.ad_id_sn = ad_id_sn;
    }

    public String getAdid() {
        return adid;
    }

    public void setAdid(String adid) {
        this.adid = adid;
    }

    public boolean isAllow() {
        return allow;
    }

    public void setAllow(boolean allow) {
        this.allow = allow;
    }

    public long getNextIntervalTime() {
        return nextIntervalTime;
    }

    public void setNextIntervalTime(long nextIntervalTime) {
        this.nextIntervalTime = nextIntervalTime;
    }
}
